﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="~/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <style type="text/css">
        .header {
            padding: 2.5rem 0.5rem 2rem 0.5rem;
        }
    </style>
</head>

<body>
    <header class="aui-bar aui-bar-nav aui-text-left header" id="header">
        <br />
        <h1>
            <a class="aui-btn aui-pull-right" tapmode onclick="openClub()">
                <i class="aui-iconfont aui-icon-my"></i>

            </a>
            以下是所有科室中医生的信息
        </h1>
    </header>


    <div class="aui-searchbar" id="search">
        <div class="aui-searchbar-input aui-border-radius" tapmode onclick="doSearch()">
            <i class="aui-iconfont aui-icon-search"></i>
            <form action="javascript:search();">
                <input type="search" placeholder="请输入搜索内容" id="search-input">
            </form>
        </div>
        <div class="aui-searchbar-cancel" tapmod>取消</div>
    </div>

    <div class="aui-content aui-margin-b-15">
        <ul class="aui-list aui-form-list">
            <li class="aui-list-header">请选择要更改排班医生</li>
        </ul>
    </div>

    @model IEnumerable<Doctordbo>
    @foreach (var item in Model)
    {
        <div class="aui-card-list">
            <div class="aui-card-list-header aui-card-list-user aui-border-b">
                <div class="aui-card-list-user-avatar">
                    <img src="~/image/@item.id
.jpg" />
                </div>
                <div class="aui-card-list-user-name">
                    <div>@Html.DisplayFor(modelItem => item.doctorname)</div>

                </div>
                @switch (item.doctortype)
                {
                    case 1:
                        <div class="aui-card-list-user-info">主治医师</div>
                        break;
                    case 2:
                        <div class="aui-card-list-user-info">副主治医师</div>
                        break;
                    case 3:
                        <div class="aui-card-list-user-info">主任医师</div>
                        break;
                }
            </div>
            <div class="aui-card-list-content-padded">
                <h4>主治：@Html.DisplayFor(modelItem => item.doctorskill)</h4>
            </div>
            <a class="btn-default" href="/Admin/UpdateWeekdboII?id=@item.id&doctorname=@item.doctorname&classnumber=@item.classnumber" tapmode onclick="showDefault('loading')">
                <div class="aui-card-list-footer aui-border-t">
                    <div class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined aui-btn-sm">更改</div>
                </div>
            </a>
        </div>
    }

    <div class="aui-list-item-inner">
        <a href="/Admin/Index"><p><div class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined">返回主界面</div></p></a>
    </div>
</body>
</html>
<script type="text/javascript" src="~/script/aui-toast.js"></script>
<script type="text/javascript" src="./script/aui-toast.js"></script>
<script type="text/javascript" src="~/script/api.js"></script>
<script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript">
    apiready = function () {
        api.parseTapmode();
    }
    var toast = new auiToast({
    })
    function showDefault(type) {
        switch (type) {
            case "success":
                toast.success({
                    title: "提交成功",
                    duration: 2000
                });
                break;
            case "fail":
                toast.fail({
                    title: "提交失败",
                    duration: 2000
                });
                break;
            case "custom":
                toast.custom({
                    title: "提交成功",
                    html: '<i class="aui-iconfont aui-icon-laud"></i>',
                    duration: 2000
                });
                break;
            case "loading":
                toast.loading({
                    title: "加载中",
                    duration: 2000
                }, function (ret) {
                    console.log(ret);
                    setTimeout(function () {
                        toast.hide();
                    }, 3000)
                });
                break;
            default:
                // statements_def
                break;
        }
    }

</script>

<script type="text/javascript">
    apiready = function () {
        api.setStatusBarStyle({
            style: 'light'
        });
        api.parseTapmode();
        var header = $api.byId('header');
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        var header_h = $api.offset($api.byId('header')).h;
        api.openFrame({
            name: 'index_frm',
            url: '~/html/index_frm.html',
            bounces: true,
            rect: {
                x: 0,
                y: header_h,
                w: 'auto',
                h: 'auto'
            }
        })
    };
    function openClub() {
        var delay = 0;
        if (api.systemType != 'ios') {
            delay = 300;
        }
        api.openWin({
            name: 'club_win',
            url: '~/html/club_win.html',
            bounces: false,
            delay: delay,
            slidBackEnabled: true,
            vScrollBarEnabled: false,
            progress: {
                type: "page"
            }
        });
    }
    function closeWin() {
        api.closeWin({
        });
    }
</script>

